package io.renren.modules.communityService.conver;

import io.renren.modules.communityService.dto.DbSuggestionsDTO;
import io.renren.modules.communityService.dto.MiniAppDbSuggestionsSaveDTO;
import io.renren.modules.communityService.entity.DbSuggestionsEntity;
import io.renren.modules.communityService.vo.DbSuggestionsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-02-07 12:36
 */
@Mapper
public interface DbSuggestionsConver {

    DbSuggestionsConver MAPPER =  Mappers.getMapper(DbSuggestionsConver.class);

    DbSuggestionsEntity converDTO(DbSuggestionsDTO dbSuggestionsDTO);

    List<DbSuggestionsEntity> converDTO(List<DbSuggestionsDTO> dbSuggestionsDTOs);

    DbSuggestionsVO conver(DbSuggestionsEntity dbSuggestionsEntities);

    List<DbSuggestionsVO> conver(List<DbSuggestionsEntity> dbSuggestionsEntities);

    DbSuggestionsEntity conver1(MiniAppDbSuggestionsSaveDTO miniAppDbSuggestionsSaveDTO);

    List<DbSuggestionsEntity> conver1(List<MiniAppDbSuggestionsSaveDTO> miniAppDbSuggestionsSaveDTOS);

}
